package com.wondream.myframework.app.mybatis.generator;

import org.apache.ibatis.io.Resources;
import org.mybatis.generator.api.MyBatisGenerator;
import org.mybatis.generator.config.Configuration;
import org.mybatis.generator.config.xml.ConfigurationParser;

import java.io.InputStream;

/**
 * mapper代码自动生成
 */
public class JadePlatformBaseCodeGenerator {
    public static void main(String[] args) throws Exception {
        InputStream resourceAsStream = Resources.getResourceAsStream("mybatis/generate-jade-platform-base.xml");
        Configuration config = new ConfigurationParser(null).parseConfiguration(resourceAsStream);
        new MyBatisGenerator(config, null, null).generate(null);
    }
}
